//
//  AppDelegate+IFlyYuYin.m
//  GLGW_Shoping
//
//  Created by yang on 2018/12/28.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "AppDelegate+IFlyYuYin.h"
#import <iflyMSC/iflyMSC.h> // 引入讯飞语音库

@implementation AppDelegate (IFlyYuYin)

-(void)initiFlySeiver{
    //Set log level
    [IFlySetting setLogFile:LVL_ALL];
    
    //Set whether to output log messages in Xcode console
    [IFlySetting showLogcat:NO];
    
    //Set the local storage path of SDK
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
    NSString *cachePath = [paths objectAtIndex:0];
    [IFlySetting setLogFilePath:cachePath];
    
    //Set APPID
    NSString *initString = [[NSString alloc] initWithFormat:@"appid=%@",kAppID_IFly];
    
    //Configure and initialize iflytek services.(This interface must been invoked in application:didFinishLaunchingWithOptions:)
    [IFlySpeechUtility createUtility:initString];
}

@end
